package com.wanxi.util;

public class Water {
    public static void main(String[] args) {
        int sum=0;
        int count=0;
        for (int i = 100; i <= 999; i++) {

//            首先得找到每个数的个十百位的数字
//            357
            int ge = i % 10;
            int shi = i / 10 % 10;
            int bai = i / 100 % 10;
            if (i == ge * ge * ge + shi * shi * shi + bai * bai * bai) {
                System.out.println(i);
                sum+=i;
                count++;
            }
        }
        System.out.println(sum);
        System.out.println(count);
    }
}
